package cn.com.aiton.trafficuser.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.util.Date;

@Entity
@Table(name = "user")
public class UserEntity extends BaseEntity{
    @Column(name="username")
    private String username;//设备名称
    @Column(name="password")
    private String password;//设备IP
    @Column(name="type")
    private Integer type;
    @Column(name="phone")
    private String phone;
    //用户创建时间
    @Column(name="times")
    private Date times;

    public UserEntity() {
    }

    public UserEntity(String username, String password, Integer type, String phone, Date times) {
        this.username = username;
        this.password = password;
        this.type = type;
        this.phone = phone;
        this.times = times;
    }

    @Override
    public String toString() {
        return "UserEntity{" +
                "username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", type=" + type +
                ", phone='" + phone + '\'' +
                ", times=" + times +
                '}';
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public Date getTimes() {
        return times;
    }

    public void setTimes(Date times) {
        this.times = times;
    }
}
